<script setup>
import { defineProps } from 'vue'
import { ref, onMounted } from 'vue'
import { getLog } from '@/api/LocalUpgrade/main.js'

const params = ref([])
const getList = async () => {
  const res = await getLog()
  console.log(res)
  const infoArr = res.data
  infoArr.forEach((item) => {
    console.log(item)
  })
  params.value = res.data
}

getList()
</script>

<template>
  <div class="showData-container">
    <div id="log-main">
      <p v-for="item in params">{{ item.beijingTime }}{{ item.data }}</p>
    </div>
  </div>
</template>

<style lang="less" scoped>
.showData-container {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-size: 14px;
}

#log-main {
  width: 100%;
  height: 100%;
  background-color: rgb(117, 106, 106);
  padding: 10px;
  > p {
    margin-bottom: 6px;
  }
}
</style>
